<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head><title>欢迎访问</title>
	<%@include file="../../../web.inc"%>
<%
BOResultSet boresult = dataSet.getBoResultSet("navi_bo");
List naviList = (List)boresult.getDataMapValue("navi_list");
String strNaviId = dataSet.getDataMapValueToStr("navi_id");
long naviId =  1;//
if(strNaviId != null){
	naviId =  Long.parseLong(strNaviId);
}

TSAdminMenuNavi naviVo;
%>
</head>
<body id="main_layout" class="easyui-layout">
	<div id="layout_north" data-options="region:'north',border:false">
		<table id="header_table">
			<tr>
				<td rowspan="2" style="width:20px;"></td>
				<td style="height:52px;">
					<div id="header_title">红房子软件管理平台</div>
				</td>
				<td style='vertical-align :top'>
						<div id="header_menu">
							<a href="admin/MainAction!modPassword.action" >修改密码</a>
							<a href="admin/MainAction!cancelUser.action" >注销</a>
						</div>
					</td>
			</tr>
		</table>
		<div id="topmenu">
			<ul class="toolbar">
			<%
			String strClass;
			String url;
			for(int i = 0 ; i< naviList.size() ; i++){
				naviVo = (TSAdminMenuNavi)naviList.get(i);
				url = naviVo.getNaviUrl() + "?mainVo.naviId=" + naviVo.getNaviId();
				if(naviVo.getNaviId() == naviId){
					strClass = "first button-toggle button-toggle-north";
				}else{
					strClass = "button-close button-close-south";
				}
			%>
				<li class="<%=strClass%>" title="<%=naviVo.getNaviName()%>"
					onclick="eventNaviClick('<%=naviVo.getNaviName() %>','<%=url%>')"><span></span>
					<%=naviVo.getNaviName()%></li>
			<%}//end for %>
			</ul>
		</div>
	</div>
	<%
		String title = "欢迎您：【"+acx.userName + "】";
	%>
	<!-- 左侧 -->
	<div id="layout_west"  region="west" data-options="region:'west',split:true," >
		<div id="west_panel" class="easyui-panel" title="<%=title %>" fit="true" border="false" href="<%=WebRoot%>jsp/admin/main/left_main.jsp">
		</div>	
	</div>
	<!-- 中间 -->
	<div id="layout_center" data-options="region:'center'" style="overflow-y:hidden">
		<div id="easyui_tabs" class="easyui-tabs">
			<div title="主页" iconCls="icon-udef-homepage" closable="false" style="overflow-y:hidden">
				<iframe frameborder="0" id="frame_homepage" class='iframeCenter' src="<%=WebRoot%>jsp/admin/main/right_main.jsp"></iframe>
			</div>
		</div>
	</div>
	<!-- 右侧 -->
	<div id="layout_east" title="常用功能" data-options="region:'east',split:true,collapsed:true">
		提供使用系统中常用的功能如：计算器、记事本、农历等
	</div>
	<!-- 下方 -->
	<div id="layout_south" data-options="region:'south',border:false">
		<div id="footer">Copyright © 2010-2013 zhangdsh</div>
	</div>
	
	
	<!-- 存放一些常用的组件 -->
	<div id="common_win" class="easyui-window" title="窗口" style="overflow-x:hidden;overflow-y:hidden;" 
		data-options="modal:true,closed:true">
		<iframe id="comm_iframe" src="javascript:false" frameborder="0" class="iframeWin"></iframe>
	</div>
	
	<script type="text/javascript">
		var winHeight = window.screen.height;
		var bodyWidth = document.body.clientWidth;
		var bodyHeight = document.body.clientHeight;
		var ifrHeight = bodyHeight;
	</script>
</body>
</html>